[PATCH] [WebAssembly] Use default attributes for intrinsics
authorNikita Popov <npopov@redhat.com>
Mon, 7 Nov 2022 14:50:05 +0000 (15:50 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 7 Sep 2023 22:41:35 +0000 (23:41 +0100)
commit7577e664b7ebeb7b3d89c89bd1573dba0c1d3259
treeaa4760e552577daa9798d3493c6d70ae3de3b80c
parentdbf278d920c87871afab9294c21b35c8a82fad2f
[PATCH] [WebAssembly] Use default attributes for intrinsics

This switches wasm intrinsics to use default attributes,
i.e. nofree, nosync, nocallback and willreturn. Especially
willreturn will be required to avoid optimization regressions
in the future.

The attributes are omitted from the trapping fptoi intrinsics
(where I assume trapping is considered well-defined, and as such
these aren't willreturn), the throw/rethrow intrinsics (which
will unwind) and the atomic intrinsics (which aren't nosync).

Differential Revision: https://reviews.llvm.org/D137551

Gbp-Pq: Name CVE-2023-29932.patch
llvm/include/llvm/IR/IntrinsicsWebAssembly.td
llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll